/**
 * 日历 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-04-18 08:50:24
 * @Copyright  AKITA
 */
/*
 * @Description:
 * @Author: zhuoda
 * @Date: 2021-11-05
 * @LastEditTime: 2022-06-23
 * @LastEditors: zhuoda
 */
import { postRequest, getRequest } from '@/lib/smart-request';

export const calendarsApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/calendars/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/calendars/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/calendars/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/calendars/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/calendars/batchDelete', idList);
  },

  info: (param) => {
    return getRequest('/calendars/info/' + param);
  },

  excute: (param) => {
    return postRequest('/calendars/excute', param);
  },
};
